﻿using System.ComponentModel.DataAnnotations;

namespace Tanmia.Warehouse.Core
{
    partial class Discriminator
    {
        public virtual bool IsSelected { get; set; }

        [Display(ShortName = "الأب", Order = 2, AutoGenerateField = true)]
        public virtual string ParentName
        {
            get
            {
                return Parent == null ?
                    Discriminator.HeadName :
                    Parent.Name;
            }
        }
    }
}
